<?php

$app['main_menu'] = function($app) {
    $menu = $app['knp_menu.factory']->createItem('root');
    $menu->setCurrentUri($app['request']->getRequestUri());

    $menu->addChild('Homepage', array('route' => 'homepage'));

    return $menu;
};

return $app;
